<?php
namespace app\controllers;

use Yii;
use yii\web\Controller;

class LoginController extends Controller
{
    
    public function actionIndex()
    {
        echo 9999;
        // return $this->render('index');
    }

    public function actionShow()
    {
        $request = Yii::$app->request;
        
        var_dump($request->get('id'));

        $data['name'] = '学并思';


        // $posts = Yii::$app->db->createCommand('SELECT * FROM fly_user')
        //     ->queryOne();
        //     
        //     
        


        $rows = (new \yii\db\Query())
        ->select('*')
        ->from('fly_user')
        ->where(['sex' => '男'])
        ->limit(10)
        ->all();

        var_dump($rows);





        return $this->render('abc',$data);
    }
}
